InstituArchRevView=Ext.extend(Ext.Panel,{
    constructor:function(a){
        Ext.apply(this,a);
        var all=this.initUIComponents();
        InstituArchRevView.superclass.constructor.call(this,{
            id:'InstituArchRevView',
            title:'制度档案修订管理',
            region:'center',
            layout:'border',
            border:'false',
            iconCls : "menu-position",
            items : [all.yearGridPanel,all.yearGridSearchPanel,all.yearGridTreePanel]
        })
    },
    initUIComponents:function(){
        var yearGridComponents=new createyeargridview({
            topbar : {
                inputFormName : 'InstituArchRevForm',
                topbarAdd:{
                    hidden:false
                },
                topbarDel:{
                    hidden:false
                }
            },
            search : {
                items : [ {
                    style : "margin:5px 5px 5px 5px;",
                    text : "制度编号"
                }, {
                    columnWidth : 0.2,
                    xtype : "textfield",
                    name : "Q_instilNo_S_LK",
                    maxLength : 256
                } ]
            },
            grid : {
                title : "制度档案修订列表",
                rowActions:true,
                listUrl : __ctxPath + "/securitysystem/listInstituArchRev.do",
                removeUrl : __ctxPath + "/securitysystem/deleteInstituArchRev.do",
                fields : [ "id", 'years','institutionalId','institution','instilNo', "instiName", "instiDescribe", "instiVersion","taskEffiveTime"],
                columns : [ {
                    header : "id",
                    dataIndex : "id",
                    hidden : true
                }, {
                    header : "年份",
                    dataIndex : "years",
                    width : 50,
                    hidden:true,
                    sortable : true
                },{
                    header : "外鍵制度id",
                    dataIndex : "institutionalId",
                    width : 0,
                    hidden:true
                }, {
                    header:"所属机构",
                    dataIndex:'institution',
                    width:100
                },{
                    header : "制度编号",
                    dataIndex : "instilNo",
                    width : 100
                }, {
                    header : "制度名称",
                    dataIndex : "instiName",
                    width : 70
                }, {
                    header : "版本号",
                    dataIndex : "instiVersion",
                    width : 100
                }, {
                    header:"生效时间",
                    dataIndex:"taskEffiveTime",
                    width:100
                }, {
                    header : "修订时间",
                    dataIndex : "reviseTime",
                    width : 70
                }, {
                    header : "修订人",
                    dataIndex : "revisePeople",
                    width : 100
                }, {
                    header:"修订部门",
                    dataIndex:"reviseDept",
                    width:100
                }]
            },
            tree : {
                treeUrl : __ctxPath + "/securitysystem/treeLoadInstituArchRev.do"
            }
        });
        return yearGridComponents;
    }
});

